package com.v2.k39;

import org.springframework.beans.BeansException;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
import org.springframework.stereotype.Component;

@Component
public class User implements ApplicationContextAware, InitializingBean {


	@Override
	public void afterPropertiesSet() throws Exception {
		System.out.println("属性赋值完后。。。");
	}

	@Override
	public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {
		System.out.println("设置applicationContext。。。");
	}
}
